package vip.zhenzicheng.design_patterns.state.after;

/**
 * @author zhenzicheng
 * @date 2022-05-26 19:18
 */
public class Client {
  public static void main(String[] args) {
    //创建环境角色对象
    Context context = new Context();
    //设置当前电梯装填
    context.setLiftState(new ClosingState());

    context.open();
    context.run();
    context.close();
    context.stop();
  }
}
